import java.util.Scanner;

public class method {
    public static void main(String[] args) {

//        Scanner sc = new Scanner(System.in);
//        System.out.println("请输入需要相加的数字，中间用空格");
//        String content = sc.nextLine();
//        int result = method1(content);
//        System.out.println(result);

//        System.out.println("================");
//        System.out.println(method2());

        /*
         * 练习
         * 定义三个方法，分别求两个整数相加，三个整数相加，四个整数相加
         * */
    }

    public static int method1(String content) {
        String[] arr = content.split(" ");
        int result = 0;
        for (String item : arr) {
            result += Integer.parseInt(item);
        }
        return result;
    }

    public static int method2() {
        int result = 0;
        for (int i = 1; i < 101; i++) {
            result += i;
        }
        return result;
    }


}
